﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="ChangeRequest.aspx.cs" Inherits="Billing2.ChangeRequest" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Controls/ucHighlight.ascx" TagName="ucHighlight" TagPrefix="uc3" %>
<%@ Register Src="~/Controls/ucPageTitle.ascx" TagName="ucPageTitle" TagPrefix="uc4" %>
<%@ Register Src="~/Controls/CR/ucCRAttachment.ascx" TagName="ucCRAttachment" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/ucFinder.ascx" TagName="ucFinder" TagPrefix="uc2" %>
<%@ Register src="~/Controls/ucInProgress.ascx" tagname="ucInProgress" tagprefix="uc5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            font-size:14px;
            font-weight: bold;
            text-decoration: underline;
        }
    </style>

    <script type="text/javascript">
        $(function () {
            // Dialog            
            $('#dialogFind').dialog({
                autoOpen: false,
                width: 980,
                modal: true
            });
            $('#dialog').parent().appendTo($("form"));
        });
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel runat="server" ID="updatePanel5">
        <ContentTemplate>
            <uc3:ucHighlight ID="ucHighlight1" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <uc4:ucPageTitle ID="ucPageTitle1" runat="server" />
    <asp:UpdatePanel runat="server" ID="updatePanel3">
        <ContentTemplate>
            <table cellpadding="5">
                <tr>
                    <td align="right">
                        <asp:Label ID="lblCreatedDateTimeLabel" runat="server" Text="Created Date Time: "></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblCreatedDateTime" runat="server"></asp:Label>
                    </td>
                    <td align="right">
                        &nbsp;</td>
                    <td width="150px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right" width="150px">
                        Change Request No:</td>
                    <td>
                        <asp:Label ID="lblCRNO" runat="server"></asp:Label>
                    </td>
                    <td align="right">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right" width="150px">
                        <asp:Label ID="lblCreatedByLabel" runat="server" Text="Created By: "></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblCreatedBy" runat="server"></asp:Label>
                    </td>
                    <td align="right">&nbsp; </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td align="right" width="150px">Status:</td>
                    <td>
                        <asp:Label ID="lblCRStatus" runat="server"></asp:Label>
                    </td>
                    <td align="right">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
            </table>

        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel runat="server" ID="updatePanelHeader">
        <ContentTemplate>
            <table>
                <tr>
                    <td class="style1" colspan="2">
                        Requested Change:
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;<asp:Button ID="btnFind" runat="server" CssClass="ui-state-default ui-corner-all"
                            Text="Find" OnClick="btnFind_Click" />
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel runat="server" ID="updatePanelSubscriber" Visible="False">
        <ContentTemplate>
            <table>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Label ID="lblNewSubscriber" runat="server" Style="font-weight: 700" Text="New Info"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblOldSubscriber" runat="server" Style="font-weight: 700" Text="Current Info"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblOrg" runat="server" Text="Organization"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlNewOrg" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlNewOrg_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="lblOldOrg" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblSite" runat="server" Text="Site"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlNewSite" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlNewSite_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="lblOldSite" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblCC" runat="server" Text="Cost Centre"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlNewCC" runat="server" AutoPostBack="True">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Label ID="lblOldCC" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblEmail" runat="server" Text="Email Address"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:TextBox ID="txtNewEmail" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblOldEmail" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblUsername" runat="server" Text="User Name"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:TextBox ID="txtNewUsername" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblOldUsername" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblAssetID" runat="server" Text="Host Name"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:TextBox ID="txtNewAssetID" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblOldAssetID" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblServiceType" runat="server" Text="Service Type"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlNewServiceType" runat="server">
                            <asp:ListItem Selected="True">Plan B1</asp:ListItem>
                        </asp:DropDownList>
                    </td>                    
                    <td>
                        <asp:Label ID="lblOldServiceType" runat="server"></asp:Label>
                    </td>
                </tr>
<%--                <tr>
                    <td>
                        <asp:Label ID="lblHostname" runat="server" Text="Host Name"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:TextBox ID="txtNewHostname" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Label ID="lblOldHostname" runat="server"></asp:Label>
                    </td>
                </tr>--%>
                <tr>
                    <td>
                        <asp:Label ID="lblEffDate" runat="server" Text="Effective Date"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td class="calendarTd">
                        <asp:TextBox ID="txtNewEffDate" runat="server"></asp:TextBox>
                        <asp:CalendarExtender ID="txtNewEffDate_CalendarExtender" runat="server" Enabled="True"
                            TargetControlID="txtNewEffDate" Format="dd/MM/yyyy">
                        </asp:CalendarExtender>
                    </td>
                    <td>
                        <asp:Label ID="lblOldEffDate" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblTermDate" runat="server" Text="Termination Date"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:TextBox ID="txtNewTermDate" runat="server"></asp:TextBox>
                        <asp:CalendarExtender ID="txtNewTermDate_CalendarExtender" runat="server" Enabled="True"
                            TargetControlID="txtNewTermDate" Format="dd/MM/yyyy">
                        </asp:CalendarExtender>
                    </td>
                    <td>
                        <asp:Label ID="lblOldTermDate" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblStatus" runat="server" Text="Status"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblNewStatus" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="true">Active</asp:ListItem>
                            <asp:ListItem Selected="true" Value="false">Inactive</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rblOldStatus" runat="server" RepeatDirection="Horizontal"
                            Enabled="False">
                            <asp:ListItem Value="true">Active</asp:ListItem>
                            <asp:ListItem Selected="true" Value="false">Inactive</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="BtnSubmit" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
    <br />
    <asp:Panel ID="PanelRequestor" runat="server">
    <table>
        <tr>
            <td>
                Comments
            </td>
            <td>
                <asp:TextBox ID="txtRequestorComment" runat="server" TextMode="MultiLine" Width="500px"
                    Font-Names="Arial" Rows="3"></asp:TextBox>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label33" runat="server" Text="Attachment"></asp:Label>
            </td>
            <td>
                <uc1:ucCRAttachment ID="ucCRAttachmentRequestor" runat="server" RoleID="1" EnableViewState="True" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    </asp:Panel>
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Button ID="BtnSubmit" runat="server" Text="Submit" CssClass="ui-state-default ui-corner-all"
                OnClick="BtnSubmit_Click" Visible="True" />
            <asp:ConfirmButtonExtender ID="BtnSubmit_ConfirmButtonExtender" runat="server" TargetControlID="BtnSubmit"
                ConfirmText="Click OK to confirm CR Submission">
            </asp:ConfirmButtonExtender>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    <asp:UpdateProgress ID="updateprogress2" runat="server" AssociatedUpdatePanelID="updatePanelHeader" >
        <ProgressTemplate>
            <uc5:ucInProgress ID="ucInProgress2" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>

    <asp:HiddenField runat="server" ID="xChangeRequestID" Value="0" />
    <asp:HiddenField runat="server" ID="xChangeRequestType" Value="0" />
    <asp:HiddenField runat="server" ID="xChangeRequestStatus" Value="0" />
    <div id="dialogFind" title="Find Profile" style="display: none">
        <div id="dialogFindEffect">
            <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                <ContentTemplate>
                    <uc2:ucFinder ID="ucFinder1" runat="server" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
</asp:Content>
